<?php

include 'persistenceManager.php';

$mySQLdb = new PersistenceManager('localhost', 'root', '97LG5w5R', 'myspace');
if(!$mySQLdb->insertArtist(1, 'Armas', 25, 0, 'Suomi', 'Turkucity')) echo(mysql_error() . "\n");
if(!$mySQLdb->insertArtist(2, 'Larpo', 37, 0, 'Suomi', 'Helsinki')) echo(mysql_error() . "\n");
$linkId = $mySQLdb->insertLink(2, 1, '2009-12-29');
if(!$linkId) print_r(mysql_error()); 
if(!$mySQLdb->insertGeolocation('Turku')) echo(mysql_error() . "\n");
if(!$mySQLdb->setAliasGeolocation('Turkucity', 'Turku')) echo("Setting alias failed: " . mysql_error() . "\n");

?>

